import logging

def main():
    logger = logging.getLogger(name="test")
    # logger = logging.getLogger(__name__)
    logging.basicConfig(level=logging.DEBUG)

    logger.debug("This is a debug message")
    logger.info("This is a info message")
    logger.warning("This is a warning message")
    logger.error("This is an error message")
    logger.critical("This is a critical message")
    logger.setLevel(logging.ERROR)

if __name__ == "__main__":
    # main()
    print("\n")
    logging.debug("This is a debug message")
    logging.info("This is a info message")
    logging.warning("This is a warning message")
    logging.error("This is an error message")
    logging.critical("This is a critical message")
